package com.acwing.chapter3;

/**
 * @author anan
 * @create 2021-08-29 0:46
 */
public class Qiuzhishu {
    public static void main(String[] args) {
        for (int i = 100000;;i++){
            boolean flag = true;
            for (int j = 2; j * j <= i; j++){
                if (i % j == 0){
                    flag = false;
                    break;
                }
            }
            if (flag == true){
                System.out.println(i);
                break;
            }

        }
    }
}
